<!doctype html>
<html>
<head>
  <meta charset="utf-8">
  @yield('info')
  <link href="{{asset('resources/views/home/css/base.css')}}" rel="stylesheet">
  <link href="{{asset('resources/views/home/css/index.css')}}" rel="stylesheet">
  <link href="{{asset('resources/views/home/css/style.css')}}" rel="stylesheet">
  <link href="{{asset('resources/views/home/css/new.css')}}" rel="stylesheet">
  <script src="{{asset('resources/views/home/js/modernizr.js')}}"></script>

</head>
<body>
    <header>
    <div id="logo"><a href="{{url('/')}}"></a></div>
        <nav class="topnav" id="topnav">
            @foreach($navs as $v)<a href="{{$v->nav_url}}"><span>{{$v->nav_name}}</span><span class="en">{{$v->nav_alias}}</span></a>@endforeach
        </nav>
    </header>
@section('content')
        <h3>
          <p>最新<span>文章</span></p>
        </h3>
        <ul class="rank">
        @foreach($new as $n)
          <li><a href="{{url('a/'.$n->art_id)}}" title="{{$n->art_title}}" target="_blank">{{$n->art_title}}</a></li>
        @endforeach  
        </ul>
        <h3 class="ph">
          <p>点击<span>排行</span></p>
        </h3>
        <ul class="paih">
        @foreach($pics as $p)
          <li><a href="{{url('a/'.$p->art_id)}}" title="{{$p->art_title}}" target="_blank">{{$p->art_title}}</a></li>
        @endforeach
        </ul>
@show
<footer>
    <p>Design by 后盾网 <a href="http://www.miitbeian.gov.cn/" target="_blank">http://www.houdunwang.com</a> <a href="/">网站统计</a></p>
</footer>
</body>
</html>
